<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <title>商户详细信息</title>
    <link rel="icon" href="favicon.ico" type="image/x-icon"/>
    <!-- 当前页面样式 -->
    <link rel="stylesheet" href=<s:url value="/css/common.css"/>>
	<script type="text/javascript" src="<s:url value="/js/jquery-1.9.1.js" />"></script>
	<%-- <script type="text/javascript" src="<s:url value="/js/query_Address.js" />"></script> --%>
	<script type="text/javascript" src="<s:url value="/js/jquery.validate.min.js" />"></script>
	<script type="text/javascript" src="<s:url value="/js/pwms.validate.js" />"></script>
	<script type="text/javascript" src="<s:url value="/js/My97DatePicker/WdatePicker.js"/>"></script>
	<script type='text/javascript' src='<s:url value="/js/YLlightbox.js"/>'></script>
	<script type='text/javascript' src='<s:url value="/js/ajaxfileupload.js"/>'></script>
	<%-- <script type="text/javascript" src="<s:url value="/dwr/engine.js"/>"></script>
	<script type='text/javascript' src='<s:url value="/dwr/interface/AddressQuery.js"/>'></script> --%>
	<style>
		 .fieldError { color: red; text-align: left; }
		.error { float: none; color: red;  vertical-align: top;font-size: 11px;}
	</style>
</head>
<body>
<s:form id="merinfoForm" method="POST" action="/mer/saveReuploadPicInfo.ct" theme="simple">
<s:hidden id="isMid" name="merinfo.busiRang" />
<s:hidden id="mer_id" name="merinfo.id" />
<s:hidden id="orgCodes"   value="%{#request.org}"/>
<table class="tb" style="width:100%">
    <tbody>
    <s:if test="merinfo.statusChange!=null ">
    	 <tr class="tb-line  bg-gray">
           <s:if test="merinfo.status==03">
            	<td class="tb-td" colspan="4" ><div class="tb-h3">冻结原因</div></td>
            </s:if>
            <s:elseif test="merinfo.status==02">
            	<td class="tb-td" colspan="4" ><div class="tb-h3">注销原因</div></td>
            </s:elseif>
        </tr>
        <tr class="tb-line" align="center">
        	<td class="tb-td" colspan="4">
        		<table style="width:100%">
        			<tr><td class="tb-td">商户号</td>
        				<td class="tb-td">风控人员</td>
        				<s:if test="merinfo.status==03">
        					<td class="tb-td">冻结原因</td>
        				</s:if>
        				<s:elseif test="merinfo.status==02">
        					<td class="tb-td">注销原因</td>
        				</s:elseif>
        				<s:if test="merinfo.status==03">
        					<td class="tb-td">冻结时间</td>
        				</s:if>
        				<s:elseif test="merinfo.status==02">
        					<td class="tb-td">注销时间</td>
        				</s:elseif>
        			</tr>
        			 <s:iterator value="merinfo.statusChange" var="change">
        			 	<tr>
	        				<td class="tb-td" >
				                <div class="tb-h4" ><s:property value="#change.mid"/></div>
				            </td>
				        	 <td class="tb-td" >
				                <div class="tb-h4"><s:property value="#change.agentName"/></div>
				            </td>
				            <td class="tb-td" >
				                <div class="tb-h4"><s:property value="#change.detail"/></div>
				            </td>
				            <td class="tb-td" style="width:210px;">
				                <div class="tb-h4"><s:property value="#change.createtime"/></div>
				            </td>
	        			</tr>
        			 </s:iterator>
        			
        			 
        		</table>
            </td>
        </tr>
    </s:if>
        <tr class="tb-line  bg-gray">
            <td class="tb-td" colspan="4" ><div class="tb-h3">商户详细信息</div></td>
        </tr>
        <tr class="tb-line">
            <td align="right" class="tb-td" style="width:110px;">
                <div class="tb-h4">商户简称：</div>
            </td>
            <td class="tb-td" >
             	<label class="tb-input-lengthen"><s:property value="merinfo.nameBusi"/>
                </label>
            </td>
            <td align="right" class="tb-td" style="width:110px;">
                <div class="tb-h4">工商注册名称：</div>
            </td>
            <td class="tb-td" >
             	<label class="tb-input-lengthen"><s:property value="merinfo.name"/>
				</label>
            </td>
        </tr>

        <tr class="tb-line">
            <td align="right" class="tb-td">
                <div class="tb-h4">商户注册地址：</div>
            </td>
            <td class="tb-td" colspan="3" >
                <label class="tb-select">
                	<s:property value="merinfo.provCd"/>-
                	<s:property value="merinfo.cityCd"/>-
                	<s:property value="merinfo.areaCd"/>-
                	<s:property value="merinfo.regAddr"/>
                </label>
            </td>
        </tr>
		 <tr class="tb-line">
            <td align="right" class="tb-td">
                <div class="tb-h4">法人代表：</div>
            </td>
            <td class="tb-td">
                <label class="tb-input-lengthen"><s:property value="merinfo.certif"/>
				</label>
            </td>
            <td align="right" class="tb-td">
                <div class="tb-h4">营业执照号码：</div>
            </td>
            <td class="tb-td">
                <label class="tb-input-lengthen"><s:property value="merinfo.busiLiceNo"/>
                </label>
            </td>
        </tr>
        <tr class="tb-line">
        	 <td    align="right" class="tb-td" >
                		 <div class="tb-h4">法人证件类型：</div>
            </td>
            <td class="tb-td" >
               <label class="tb-select">
               		<s:property value="merinfo.certifType"/>
               		<%-- <s:select name="merinfo.certifType" list="#request.certifType"></s:select> --%>
                </label>
            </td>
            <td   align="right" class="tb-td" >
                <div class="tb-h4">法人证件号码：</div>
            </td>
            <td class="tb-td" >
                <label class="tb-input-lengthen"><s:property value="merinfo.certifNo"/>
				</label>
            </td>
        </tr>
        <tr class="tb-line">
            <td align="right" class="tb-td">
                <div class="tb-h4">商户联系人：</div>
            </td>
            <td class="tb-td" >
                <label class="tb-input-lengthen"><s:property value="merinfo.contactName"/>
                </label>
            </td>
            <td  align="right" class="tb-td">
                <div class="tb-h4">手机号码：</div>
            </td>
            <td class="tb-td" >
                <label class="tb-input-lengthen"><s:property value="merinfo.contactPhoneNo"/>
                </label>
            </td>
        </tr>
        
		<tr class="tb-line">
            <td align="right" class="tb-td">
                <div class="tb-h4">经营业务、范围：</div>
            </td>
            <td class="tb-td"  >
                <label class="tb-input-lengthen">
                	<s:property value="merinfo.busiMain"/>
                </label>
            </td>
             <td align="right" class="tb-td">
                <div class="tb-h4">商户类型：</div>
            </td>
            <td class="tb-td" >
                <label class="tb-input-normal">
                	<s:if test="merinfo.nationCd==\"0  \"">
                 		个体户
                 	</s:if>
					<s:if test="merinfo.nationCd==\"1  \"">
						企业
					</s:if>
                </label>
            </td>
        </tr>
       
         <tr class="tb-line">
            <td align="right" class="tb-td">
                <div class="tb-h4">商户等级：</div>
            </td>
            <td class="tb-td" >
                <label class="tb-input-lengthen">
                	<s:property value="merinfo.isGroup"/>
                </label>
            </td>
            <td align="right" class="tb-td">
                <div class="tb-h4">商户直间连：</div>
            </td>
            <td class="tb-td" >
                <label class="tb-input-normal">
                	<s:if test="merinfo.groupCD==\"0\""> 间联 </s:if>
                 	<s:if test="merinfo.groupCD==\"1\""> 直联</s:if>
                	<s:if test="merinfo.groupCD==\"2\""> 间联直营</s:if>
                	
                </label>
            </td>
        </tr>
         <tr class="tb-line">
            <td align="right" class="tb-td">
                <div class="tb-h4">备注：</div>
            </td>
            <td class="tb-td" colspan="3" >
                <label class="tb-input-lengthen">
                	<s:property value="merinfo.ext2"/>
                </label>
            </td>
        </tr>
         <tr class="tb-line bg-gray">
            <td  align="center" class="tb-td"  colspan="4"><div class="tb-h3">商户结算信息</div></td>
        </tr>
         <tr class="tb-line" style="width:100%">
				    	<td align="right" class="tb-td" style="width:110px;">
				        	<div class="tb-h4">账户属性：</div>
			            </td>
			            <td class="tb-td" id="approvalUserName">
			            	<s:if test="merinfo.approvalUserName==\"0\"">
			            		私人账户
                 			</s:if>
                 			<s:if test="merinfo.approvalUserName==\"1\"">
                 				企业账户
                 			</s:if>
						 </td>
				</tr>
        <tr class="tb-line"  >
            <td   align="right" class="tb-td"  >
                 <div class="tb-h4">是否法人结算：</div>
             </td>
             <td class="tb-td"   >
                 <label class="tb-input-lengthen">
                 	<s:if test="merinfo.dvpBy==\"0\"">
                 		是
                 	</s:if>
					<s:if test="merinfo.dvpBy==\"1\"">
						否
					</s:if>
                 </label>
             </td>
             <td align="right" class="tb-td"  >
                 <div class="tb-h4">非法人身份证号：</div>
             </td>
             <td class="tb-td"   >
                 <label class="tb-input-lengthen">
                 	<s:if test="merinfo.stlmWayDesc==null">无</s:if>
                 	<s:else><s:property value="merinfo.stlmWayDesc"/></s:else>
                 </label>
             </td>
         </tr>
        <tr class="tb-line"  >
            <td   align="right" class="tb-td"  >
                 <div class="tb-h4">账户名称：</div>
             </td>
             <td class="tb-td"   >
                 <label class="tb-input-lengthen">
                 	<s:property value="merinfo.bankAccount.name"/>
                 </label>
             </td>
             <td align="right" class="tb-td"  >
                 <div class="tb-h4">账户账号：</div>
             </td>
             <td class="tb-td"   >
                 <label class="tb-input-lengthen">
                 	<s:property value="merinfo.bankAccount.account"/>
                 </label>
             </td>
         </tr>
                 <tr class="tb-line"  >
                   <td   align="right" class="tb-td"  >
                        <div class="tb-h4">开户行：</div>
                    </td>
                    <td class="tb-td" >
                        <label class="tb-input-lengthen">
                        	<s:property value="merinfo.bankAccount.bankName"/>
                        </label>
                    </td>
                    <td align="right" class="tb-td"  >
                        <div class="tb-h4"><!-- 开户行支付系统行号 -->联行号：</div>
                    </td>
                    <td class="tb-td"   >
                        <label class="tb-input-lengthen">
                        <s:property value="merinfo.bankAccount.bankCode"/>
                        </label>
                    </td>
                </tr>
                <tr class="tb-line bg-gray">
		            <td  align="center" class="tb-td"  colspan="4"><div class="tb-h3">终端信息共计[<s:property value="merinfo.terminfoList.size()"/>]台</div></td>
		        </tr>
 				<tr class="tb-line">
 					<td class="tb-td" colspan="4" style="padding:0;">
 						<table style="width: 100%" >
 							<s:iterator value="merinfo.terminfoList" var="ter" status="sums">
					        	<tr class="tb-line"  >
					        	   <td rowspan="4" align="center">第[<s:property value="#sums.index+1"/>]台</td>
				                   <td   align="right" class="tb-td"  >
				                        <div class="tb-h4">终端类型：</div>
				                    </td>
				                    <td class="tb-td" >
				                        <label class="tb-input-lengthen">
				                        	<s:property value="#ter.TermTp"/>
				                        </label>
				                    </td>
				                    <td align="right" class="tb-td"  >
				                        <div class="tb-h4">终端接入方式：</div>
				                    </td>
				                    <td class="tb-td"   >
				                        <label class="tb-input-lengthen">
				                        	<s:if test="#ter.TmnlIntype==\"0\"">无线(GPRS)</s:if>
				                        	<s:if test="#ter.TmnlIntype==\"1\"">有线(拨号)</s:if>
				                        </label>
				                    </td>
				                </tr>
				                <tr class="tb-line"  >
				                   <td   align="right" class="tb-td"  >
				                        <div class="tb-h4">押金：</div>
				                    </td>
				                    <td class="tb-td" >
				                        <label class="tb-input-lengthen">
				                        	<s:property value="#ter.TmnlMoney"/>
				                        </label>
				                    </td>
				                    <td align="right" class="tb-td"  >
				                        <div class="tb-h4">安装地址：</div>
				                    </td>
				                    <td class="tb-td"   >
				                        <label class="tb-input-lengthen">
				                        	<s:property value="#ter.Installlocation"/>
				                        </label>
				                        <!-- <input value="添加终端风控信息" type="button"/> -->
				                    </td>
				                    <s:iterator value="#ter.riskCfgList" var="risk" status="stat">
				                    	<s:hidden name="merinfo.terminfoList[%{#sums.index}].riskCfgList[%{#stat.index}].id.TermId"/>
				                    	<s:hidden name="merinfo.terminfoList[%{#sums.index}].riskCfgList[%{#stat.index}].id.CardType"/>
				                    	<s:hidden name="merinfo.terminfoList[%{#sums.index}].riskCfgList[%{#stat.index}].AccpetStartTime"/>
				                    	<s:hidden name="merinfo.terminfoList[%{#sums.index}].riskCfgList[%{#stat.index}].AccpetEndTime"/>
			                			<tr class="tb-line">
						                	<td   class="tb-td" colspan="4" style="padding:0;">
						                		<table style="width: 100%">
						                			<tr class="tb-line">
						                				<td class="tb-td" align="left">
						                					<s:if test="#risk.id.CardType==\"00\"">贷记卡 </s:if>
						                					<s:if test="#risk.id.CardType==\"01\"">借记卡</s:if>
						                				 </td>
						                				<td class="tb-td">营业时间：<s:property value="#risk.AccpetStartTime.substring(0,2)"/>:<s:property value="#risk.AccpetStartTime.substring(2,4)"/>  -  <s:property value="#risk.AccpetEndTime.substring(0,2)"/>:<s:property value="#risk.AccpetEndTime.substring(2,4)"/></td>
						                				
						                				<td class="tb-td">	
						                					单笔下限：
						                					<label class="tb-input-mini">
						                						<s:property value="merinfo.terminfoList[#sums.index].riskCfgList[#stat.index].SingleMinMoney"/>
						                					</label>元<span ></span>
						                				</td>
						                				<td class="tb-td">
						                					单笔上限：
						                					<label class="tb-input-mini">
						                						<s:property value="merinfo.terminfoList[#sums.index].riskCfgList[#stat.index].SingleLimitmoney"/>
						                						
						                						</label>元<span ></span>
						                				</td>
						                				<td class="tb-td">
						                					单日累计限额：
						                					<label class="tb-input-mini">
						                						<s:property value="merinfo.terminfoList[#sums.index].riskCfgList[#stat.index].TotalLimitmoney"/>
						                						
						                						</label>元<span ></span>
						                				 </td>
						                				 
						                			</tr>
						                			 
						                		</table>
						                        
						                    </td>
						                     
						                </tr>
					                </s:iterator>
									 
				                </tr>
					        </s:iterator>
 						</table>
 					</td>
 				</tr>
 				<tr class="tb-line bg-gray">
		            <td  align="center" class="tb-td"  colspan="4"><div class="tb-h3">产品信息</div></td>
		        </tr>
		         <tr class="tb-line">
                    <td   align="right" class="tb-td">
                        <div class="tb-h4">产品信息：</div>
                    </td>
                    <td  align="left" class="tb-td" style="padding-left: 15px;">
                    	<s:iterator value="merinfo.productCode" var="c" status="st">
							<s:if test="#st.index!=0 && #c!=null">+</s:if> <s:property value="#c" />
			        	</s:iterator>
                    </td>
                    <td   align="right" class="tb-td">
                        <div class="tb-h4">开通POS功能：</div>
                    </td>
                    <td  align="left" class="tb-td" style="padding-left: 15px;">
                    	<s:checkboxlist name="merinfo.productStrs" list="#request.posFunction" value="merinfo.productStrs" disabled="true"/><span></span>
                    </td>
                </tr>
                <s:iterator value="merinfo.fee" var="fees" status="feestat">
                	<tr class="tb-line" >
	                 	<td  align="right" class="tb-td" ><s:property value="#fees.mchtFeeMd"/>： </td>
	                 	 <td  align="left" class="tb-td"  colspan="3" style="padding-left:15px;">
	                 	 	 <s:property value="#fees.mchtFeePercent"/>
	                 		 % -
	                 		 <s:property value="#fees.mchtFeePctMax"/>
                           	 封顶
                         </td>
	                 </tr> 
                </s:iterator>
                <tr class="tb-line bg-gray">
		            <td  align="center" class="tb-td"  colspan="4"><div class="tb-h3">图片资料信息</div></td>
		        </tr>
		        <tr class="tb-line">
		        	<td  class="tb-td" colspan="4" style="padding:0;">
		  <table style="width: 100%" class="tb-pic YLlightbox">
            <tbody>
                <tr class="tb-line">
                    <td class="tb-td" colspan="6">
                        <div class="tb-h3"><font color="red">提示：带&nbsp;*&nbsp;为必传项！若为非法人结算，则需上传非法人身份证图片！</font> </div>
                    </td>
                </tr>

                <tr class="tb-line">
                    <td width="3%" class="tb-td"></td>
                    <td width="20%" style="min-width: 240px" class="tb-td">
                        <div class="pic-uploading">
                            <p>营业执照照片</p>
                            <input  type="file" name="file" id="imgOne" onchange="uploadImg(this.id,'00');"  accept="image/*" capture="camera" />
                            <s:hidden id="imgOneId" name="merinfo.pictrueList[0].Url" />
                            <a rel="YLlightbox"  href="<s:if test="merinfo.pictrueList[0].Url!=null"><s:property value="merinfo.pictrueList[0].Url"/></s:if>" style="<s:if test="merinfo.pictrueList[0].Url!=null">display:block;</s:if>">  
                                <img src="<s:if test="merinfo.pictrueList[0].Url!=null"><s:property value="merinfo.pictrueList[0].Url"/></s:if>" />
                            </a>
                            <i class="delete-pic" style="<s:if test="merinfo.pictrueList[0].Url!=null">display:inline;</s:if>"></i>
                        </div>
                        <div class="tb-normal" id="divOne">请上传营业执照照片<code class="asterisk">*</code></div>
                    </td>
                    <td width="20%" style="min-width: 240px" class="tb-td">
                        <div class="pic-uploading" id="div1">
                            <p>法人身份证正面照片</p>
                            <input type="file" name="file"id="imgTwo"  onchange="uploadImg(this.id,'01');"  accept="image/*" capture="camera" />
                            <s:hidden id="imgTwoId" name="merinfo.pictrueList[1].Url" />
                            <a rel="YLlightbox"  href="<s:if test="merinfo.pictrueList[1].Url!=null"><s:property value="merinfo.pictrueList[1].Url"/></s:if>" style="<s:if test="merinfo.pictrueList[1].Url!=null">display:block;</s:if>">  
                                <img src="<s:if test="merinfo.pictrueList[1].Url!=null"><s:property value="merinfo.pictrueList[1].Url"/></s:if>" />
                            </a>
                            <i class="delete-pic" style="<s:if test="merinfo.pictrueList[1].Url!=null">display:inline;</s:if>"></i>
                        </div>
                        <div class="tb-normal" id="divTwo">请上传法人身份证正面照片<code class="asterisk">*</code></div>
                    </td>
                    <td width="20%" style="min-width: 240px" class="tb-td">
                        <div class="pic-uploading">
                            <p>法人身份证反面照片</p>
                            <input type="file" name="file" id="imgThree" onchange="uploadImg(this.id,'02');" accept="image/*" capture="camera" />
                            <s:hidden id="imgThreeId" name="merinfo.pictrueList[2].Url" />
                            <a rel="YLlightbox"  href="<s:if test="merinfo.pictrueList[2].Url!=null"><s:property value="merinfo.pictrueList[2].Url"/></s:if>" style="<s:if test="merinfo.pictrueList[2].Url!=null">display:block;</s:if>">  
                                <img src="<s:if test="merinfo.pictrueList[2].Url!=null"><s:property value="merinfo.pictrueList[2].Url"/></s:if>" />
                            </a>
                            <i class="delete-pic" style="<s:if test="merinfo.pictrueList[2].Url!=null">display:inline;</s:if>"></i>
                        </div>
                        <div class="tb-normal" id="divThree">请上传法人身份证反面照片<code class="asterisk">*</code></div>
                    </td>
                    <td width="20%" class="tb-td">
                    	 <div class="pic-uploading">
                            <p>结算银行卡照片</p>
                            <input type="file" name="file" id="imgFour" onchange="uploadImg(this.id,'03');" accept="image/*" capture="camera" />
                            <s:hidden id="imgFourId" name="merinfo.pictrueList[3].Url" />
                            <a rel="YLlightbox"  href="<s:if test="merinfo.pictrueList[3].Url!=null"><s:property value="merinfo.pictrueList[3].Url"/></s:if>" style="<s:if test="merinfo.pictrueList[1].Url!=null">display:block;</s:if>">  
                                <img src="<s:if test="merinfo.pictrueList[3].Url!=null"><s:property value="merinfo.pictrueList[3].Url"/></s:if>" />
                            </a>
                            <i class="delete-pic" style="<s:if test="merinfo.pictrueList[3].Url!=null">display:inline;</s:if>"></i>
                        </div>
                        <div class="tb-normal" id="divFour">请上传结算银行卡照片<code class="asterisk">*</code></div>
                    </td>
                </tr>

                <tr class="tb-line">
                    <td class="tb-td"></td>
                    <td class="tb-td">
                        <div class="pic-uploading">
                            <p>门头照照片</p>
                            <input type="file" name="file" id="imgFive" onchange="uploadImg(this.id,'04');" accept="image/*" capture="camera" />
                            <s:hidden id="imgFiveId" name="merinfo.pictrueList[4].Url" />
                            <a rel="YLlightbox"  href="<s:if test="merinfo.pictrueList[4].Url!=null"><s:property value="merinfo.pictrueList[4].Url"/></s:if>" style="<s:if test="merinfo.pictrueList[4].Url!=null">display:block;</s:if>">  
                                <img src="<s:if test="merinfo.pictrueList[4].Url!=null"><s:property value="merinfo.pictrueList[4].Url"/></s:if>" />
                            </a>
                            <i class="delete-pic" style="<s:if test="merinfo.pictrueList[4].Url!=null">display:inline;</s:if>"></i>
                        </div>
                        <div class="tb-normal" id="divFive">请上传门头照照片<code class="asterisk">*</code></div>
                    </td>
                    <td class="tb-td">
                        <div class="pic-uploading">
                            <p>收银台照片</p>
                            <input type="file" name="file" id="imgSix" onchange="uploadImg(this.id,'05');" accept="image/*" capture="camera" />
                            <s:hidden id="imgSixId" name="merinfo.pictrueList[5].Url" />
                            <a rel="YLlightbox"  href="<s:if test="merinfo.pictrueList[5].Url!=null"><s:property value="merinfo.pictrueList[5].Url"/></s:if>" style="<s:if test="merinfo.pictrueList[5].Url!=null">display:block;</s:if>">  
                                <img src="<s:if test="merinfo.pictrueList[5].Url!=null"><s:property value="merinfo.pictrueList[5].Url"/></s:if>" />
                            </a>
                            <i class="delete-pic" style="<s:if test="merinfo.pictrueList[5].Url!=null">display:inline;</s:if>"></i>
                        </div>
                        <div class="tb-normal" id="divSix">请上传收银台照片<code class="asterisk">*</code></div>
                    </td>
                    <td class="tb-td">
                        <div class="pic-uploading">
                            <p>经营场所照片</p>
                            <input type="file" name="file" id="imgSeven" onchange="uploadImg(this.id,'06');" accept="image/*" capture="camera" />
                            <s:hidden id="imgSevenId" name="merinfo.pictrueList[6].Url" />
                            <a rel="YLlightbox"  href="<s:if test="merinfo.pictrueList[6].Url!=null"><s:property value="merinfo.pictrueList[6].Url"/></s:if>" style="<s:if test="merinfo.pictrueList[6].Url!=null">display:block;</s:if>">  
                                <img src="<s:if test="merinfo.pictrueList[6].Url!=null"><s:property value="merinfo.pictrueList[6].Url"/></s:if>" />
                            </a>
                            <i class="delete-pic" style="<s:if test="merinfo.pictrueList[6].Url!=null">display:inline;</s:if>"></i>
                        </div>
                        <div class="tb-normal" id="divSeven">请上传经营场所照片<code class="asterisk">*</code></div>
                    </td>
                    <td class="tb-td">
                        <div class="pic-uploading">
                            <p>商户协议电子稿照片</p>
                            <input type="file" name="file" id="imgEight" onchange="uploadImg(this.id,'07');" accept="image/*" capture="camera" />
                           <s:hidden id="imgEightId" name="merinfo.pictrueList[7].Url" />
                            <a rel="YLlightbox"  href="<s:if test="merinfo.pictrueList[7].Url!=null"><s:property value="merinfo.pictrueList[7].Url"/></s:if>" style="<s:if test="merinfo.pictrueList[7].Url!=null">display:block;</s:if>">  
                                <img src="<s:if test="merinfo.pictrueList[7].Url!=null"><s:property value="merinfo.pictrueList[7].Url"/></s:if>" />
                            </a>
                            <i class="delete-pic" style="<s:if test="merinfo.pictrueList[7].Url!=null">display:inline;</s:if>"></i>
                        </div>
                        <div class="tb-normal" id="divEight">请上传商户协议电子稿照片<code class="asterisk">*</code></div>
                    </td>
                </tr>

                <tr class="tb-line">
                    <td class="tb-td"></td>
                    <td class="tb-td">
                        <div class="pic-uploading">
                            <p>备注1</p>
                            <input type="file" name="file" id="imgNine" onchange="uploadImg(this.id,'08');" accept="image/*" capture="camera" />
                           <s:hidden id="imgNineId" name="merinfo.pictrueList[8].Url" />
                            <a rel="YLlightbox"  href="<s:if test="merinfo.pictrueList.size()>8"><s:property value="merinfo.pictrueList[8].Url"/></s:if>" style="<s:if test="merinfo.pictrueList.size()>8">display:block;</s:if>">  
                                <img src="<s:if test="merinfo.pictrueList[8].Url!=null"><s:property value="merinfo.pictrueList[8].Url"/></s:if>" />
                            </a>
                            <i class="delete-pic" style="<s:if test="merinfo.pictrueList.size()>8">display:inline;</s:if>"></i>
                        </div>
                        <div class="tb-normal" id="divNine">请上传备注1照片</div>
                    </td>
                     <td class="tb-td">
                        <div class="pic-uploading">
                            <p>备注2</p>
                            <input type="file" name="file" id="imgTen" onchange="uploadImg(this.id,'09');" accept="image/*" capture="camera" />
                           <s:hidden id="imgTenId" name="merinfo.pictrueList[9].Url" />
                            <a rel="YLlightbox"  href="<s:if test="merinfo.pictrueList.size()>9"><s:property value="merinfo.pictrueList[9].Url"/></s:if>" style="<s:if test="merinfo.pictrueList.size()>9">display:block;</s:if>">  
                                <img src="<s:if test="merinfo.pictrueList[9].Url!=null"><s:property value="merinfo.pictrueList[9].Url"/></s:if>" />
                            </a>
                            <i class="delete-pic" style="<s:if test="merinfo.pictrueList.size()>9">display:inline;</s:if>"></i>
                        </div>
                        <div class="tb-normal" id="divTen">请上传备注2照片</div>
                    </td>
                    <td class="tb-td">
                        <div class="pic-uploading">
                            <p>备注3</p>
                            <input type="file" name="file" id="imgEleven" onchange="uploadImg(this.id,'10');" accept="image/*" capture="camera" />
                           <s:hidden id="imgElevenId" name="merinfo.pictrueList[10].Url" />
                            <a rel="YLlightbox"  href="<s:if test="merinfo.pictrueList.size()>10"><s:property value="merinfo.pictrueList[10].Url"/></s:if>" style="<s:if test="merinfo.pictrueList.size()>10">display:block;</s:if>">  
                                <img src="<s:if test="merinfo.pictrueList[10].Url!=null"><s:property value="merinfo.pictrueList[10].Url"/></s:if>" />
                            </a>
                            <i class="delete-pic" style="<s:if test="merinfo.pictrueList.size()>10">display:inline;</s:if>"></i>
                        </div>
                        <div class="tb-normal" id="divEleven">请上传备注3照片</div>
                    </td>
                    <td class="tb-td">
                        <div class="pic-uploading">
                            <p>备注4</p>
                            <input type="file" name="file" id="imgTwelve" onchange="uploadImg(this.id,'11');" accept="image/*" capture="camera" />
                           <s:hidden id="imgTwelveId" name="merinfo.pictrueList[11].Url" />
                            <a rel="YLlightbox"  href="<s:if test="merinfo.pictrueList.size()>11"><s:property value="merinfo.pictrueList[11].Url"/></s:if>" style="<s:if test="merinfo.pictrueList.size()>11">display:block;</s:if>">  
                                <img src="<s:if test="merinfo.pictrueList[11].Url!=null"><s:property value="merinfo.pictrueList[11].Url"/></s:if>" />
                            </a>
                            <i class="delete-pic" style="<s:if test="merinfo.pictrueList.size()>11">display:inline;</s:if>"></i>
                        </div>
                        <div class="tb-normal" id="divTwelve">请上传备注4照片</div>
                    </td>
                </tr>
                 <tr class="tb-line">
                    <td class="tb-td"></td>
                    <td class="tb-td">
                        <div class="pic-uploading">
                            <p>备注5</p>
                            <input type="file" name="file" id="imgThirteen" onchange="uploadImg(this.id,'12');" accept="image/*" capture="camera" />
                           <s:hidden id="imgThirteenId" name="merinfo.pictrueList[12].Url" />
                            <a rel="YLlightbox"  href="<s:if test="merinfo.pictrueList.size()>12"><s:property value="merinfo.pictrueList[12].Url"/></s:if>" style="<s:if test="merinfo.pictrueList.size()>12">display:block;</s:if>">  
                                <img src="<s:if test="merinfo.pictrueList[12].Url!=null"><s:property value="merinfo.pictrueList[12].Url"/></s:if>" />
                            </a>
                            <i class="delete-pic" style="<s:if test="merinfo.pictrueList.size()>12">display:inline;</s:if>"></i>
                        </div>
                        <div class="tb-normal" id="divThirteen">请上传备注5照片</div>
                    </td>
                     <td class="tb-td">
                        <div class="pic-uploading">
                            <p>备注6</p>
                            <input type="file" name="file" id="imgFourteen" onchange="uploadImg(this.id,'13');" accept="image/*" capture="camera" />
                           <s:hidden id="imgFourteenId" name="merinfo.pictrueList[13].Url" />
                            <a rel="YLlightbox"  href="<s:if test="merinfo.pictrueList.size()>13"><s:property value="merinfo.pictrueList[13].Url"/></s:if>" style="<s:if test="merinfo.pictrueList.size()>13">display:block;</s:if>">  
                                <img src="<s:if test="merinfo.pictrueList[13].Url!=null"><s:property value="merinfo.pictrueList[9].Url"/></s:if>" />
                            </a>
                            <i class="delete-pic" style="<s:if test="merinfo.pictrueList.size()>13">display:inline;</s:if>"></i>
                        </div>
                        <div class="tb-normal" id="divFourteen">请上传备注6照片</div>
                    </td>
                    <td class="tb-td">
                        <div class="pic-uploading">
                            <p>备注7</p>
                            <input type="file" name="file" id="imgFifteen" onchange="uploadImg(this.id,'14');" accept="image/*" capture="camera" />
                           <s:hidden id="imgFifteenId" name="merinfo.pictrueList[14].Url" />
                            <a rel="YLlightbox"  href="<s:if test="merinfo.pictrueList.size()>14"><s:property value="merinfo.pictrueList[14].Url"/></s:if>" style="<s:if test="merinfo.pictrueList.size()>14">display:block;</s:if>">  
                                <img src="<s:if test="merinfo.pictrueList[14].Url!=null"><s:property value="merinfo.pictrueList[14].Url"/></s:if>" />
                            </a>
                            <i class="delete-pic" style="<s:if test="merinfo.pictrueList.size()>14">display:inline;</s:if>"></i>
                        </div>
                        <div class="tb-normal" id="divFifteen">请上传备注7照片</div>
                    </td>
                    <td class="tb-td">
                        <div class="pic-uploading" id="bbbbbbbb">
                            <p>备注8</p>
                            <input type="file" name="file" id="imgSixteen" onchange="uploadImg(this.id,'15');" accept="image/*" capture="camera" />
                           <s:hidden id="imgSixteenId" name="merinfo.pictrueList[15].Url" />
                            <a rel="YLlightbox"  href="<s:if test="merinfo.pictrueList.size()>15"><s:property value="merinfo.pictrueList[15].Url"/></s:if>" style="<s:if test="merinfo.pictrueList.size()>15">display:block;</s:if>">  
                                <img src="<s:if test="merinfo.pictrueList[15].Url!=null"><s:property value="merinfo.pictrueList[15].Url"/></s:if>" />
                            </a>
                            <i class="delete-pic" style="<s:if test="merinfo.pictrueList.size()>15">display:inline;</s:if>"></i>
                        </div>
                        <div class="tb-normal" id="divSixteen">请上传备注8照片</div>
                    </td>
                </tr>
            </tbody>
		</table>
		        	</td>
		        </tr>
             	 <tr class="tb-line bg-gray">
		            <td  align="center" class="tb-td"  colspan="4"><div class="tb-h3">拓展信息</div></td>
		     	 </tr> 
		      <tr class="tb-line">
		      		<td  align="right" class="tb-td" >商户MCC选择： </td>
		      		<td align="left" class="tb-td" colspan="3" style="padding-left:15px;">
		      			<s:select list="#request.mcc" name="merinfo.upMccCd" disabled="true"/>
		      		</td>
		      </tr> 
		      <tr class="tb-line">
		      		<td  align="right" class="tb-td" >32域： </td>
		      		<td align="left" class="tb-td" colspan="3" style="padding-left:15px;">
		      			 <s:property value="#request.code32"/>
		      		</td>
		      </tr>		      
</table>
<div align="center"  class="line-submit bg-gray">
    	<label class="tb-input-submit"  >
                   <input id="submitBtn" type="submit" value="提交"/>
        </label>
        <label class="tb-input-submit"  >
                   <input id="goBack" type="button" value="返回"/>
        </label>
 </div>
</s:form> 
<script>
	var currentTerNum=1;
    $(function () {
    	//***********************************************************************css
        $('#tabBody').on('click', '.tab-title .tb-title', function () {
            var $this = $(this); /// 点击的对象
            var index = $this.index();  // 点击对象的下标

            // 点击的对象添加active，同类对象移除active
            $this.addClass('active').siblings().removeClass('active');

            // 查找与点击对象相同关系的列表显示并隐藏同类对象
            $('#tabBody').find('.tab-cnt .tb').eq(index).show().siblings().hide();
        });
        $('.delete-pic').on('click',deleteImage);
    	//返回
    	$("#goBack").click(function(){
    		//window.location.href="";
    		 history.go(-1);
    	});
    	 
    	
    	$("#goBack").click(function(){
    		//window.location.href="";
    		 history.go(-1);
    	});
    	
    	$("#merinfoForm").validate({
			debug : true,
			submitHandler : function(form) {
				 if($("#isMid").val()==null || $("#isMid").val()==""){
					 alert("加载信息异常");
					 return;
				 } 
				 
				 $("#submitBtn").attr("disabled",true);
				 form.submit();
			},
			rules : {
				
				"merinfo.pictrueList[0].Url":{required: true},
				"merinfo.pictrueList[1].Url":{required: true},
				"merinfo.pictrueList[2].Url":{required: true},
				"merinfo.pictrueList[3].Url":{required: true},
				"merinfo.pictrueList[4].Url":{required: true},
				"merinfo.pictrueList[5].Url":{required: true},
				"merinfo.pictrueList[6].Url":{required: true},
				"merinfo.pictrueList[7].Url":{required: true}
				
			},
			messages : {
				
				"merinfo.pictrueList[0].Url":{required:"未上传"},
				"merinfo.pictrueList[1].Url":{required:"未上传"},
				"merinfo.pictrueList[2].Url":{required:"未上传"},
				"merinfo.pictrueList[3].Url":{required:"未上传"},
				"merinfo.pictrueList[4].Url":{required:"未上传"},
				"merinfo.pictrueList[5].Url":{required:"未上传"},
				"merinfo.pictrueList[6].Url":{required:"未上传"},
				"merinfo.pictrueList[7].Url":{required: "未上传"}
				
			},errorPlacement: function(error, element) { 
			    if ( element.is(":radio") ) error.appendTo ( element.parent() ); 
			    else if ( element.is(":checkbox") ) error.appendTo ( element.parent() ); 
			    else if ( element.is("input") ) error.appendTo ( element.parent().next() ); 
			    else if ( element.is("select") ) error.appendTo ( element ); 
			    else error.insertAfter(element); 
			} 
		})
    });   
       
        
     
     
</script>
</body>
</html>
